package com.atguigu.common.constant;

public class WareConstant {
    //采购状态相关的枚举
    public enum PuchaseStatusEnum{
        CREATED(0,"新建"),ASSIGNED(1,"已分配"),
        RECEIVE(2,"已领取"),FINISH(3,"已完成"),
        HASERROR(4,"有异常"),;

        private int typeCode;
        private String typeMsg;

        PuchaseStatusEnum(int typeCode, String typeMsg) {
            this.typeCode = typeCode;
            this.typeMsg = typeMsg;
        }

        public int getTypeCode() {
            return typeCode;
        }

        public String getTypeMsg() {
            return typeMsg;
        }
    }

    //采购需求的状态相关的枚举
    public enum PuchaseDetailStatusEnum{
        CREATED(0,"新建"),ASSIGNED(1,"已分配"),
        BUYING(2,"正在采购"),FINISH(3,"已完成"),
        HASERROR(4,"采购失败"),;

        private int typeCode;
        private String typeMsg;

        PuchaseDetailStatusEnum(int typeCode, String typeMsg) {
            this.typeCode = typeCode;
            this.typeMsg = typeMsg;
        }

        public int getTypeCode() {
            return typeCode;
        }

        public String getTypeMsg() {
            return typeMsg;
        }
    }
}
